import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Lawyerlist from '@/components/lawyer-list'
import LawyerDetail from '@/components/lawyer-DEtail'
import Home from '@/components/home'
Vue.use(Router)

export default new Router({
    routes: [
        // {
        //     path: '/',
        //     name: 'home',
        //     meta: {
        //         title: '尊而光律师评价系统'
        //     },
        //     component: Home
        // }, 
        {
            path: '/',
            name: 'Lawyerlist',
            meta: {
                title: '尊而光律师评价系统'
            },
            component: Lawyerlist
        }, 
        {
            path: '/LawyerDetail/:id',
            name: 'LawyerDetail',
            meta: {
                title: '尊而光律师评价系统'
            },
            component: LawyerDetail
        }
    ]
})